using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using GestaoEventos.Interface;
using GestaoEventos.DataAccess;

namespace GestaoEventos.Business
{
       public class B_AudioVisual
       {
           #region Atributos

           private I_AudioVisual _IAudioVisual;

           #endregion

           #region Propriedades

           public I_AudioVisual IAudioVisual
           {
               get { return _IAudioVisual; }
               set { _IAudioVisual = value; }
           }

           #endregion

           #region Construtores

           public B_AudioVisual()
           {
               try
               {
                   _IAudioVisual = new I_AudioVisual();
               }
               catch(Exception e)
               {
                   throw e;
               }
           }
           public B_AudioVisual(I_AudioVisual IObj)
           {
               try
               {
                   _IAudioVisual = IObj;
               }
               catch(Exception e)
               {
                   throw e;
               }
           }

           #endregion

           #region Métodos Publicos

           public int Inserir()
           {
               try
               {
                   D_AudioVisual DAudioVisual = new D_AudioVisual();
                   return DAudioVisual.Insert(_IAudioVisual);
               }
               catch(Exception e)
               {
                   throw e;
               }
           }
           public int Atualizar()
           {
               try
               {
                   D_AudioVisual DAudioVisual = new D_AudioVisual();
                   return DAudioVisual.Update(_IAudioVisual);
               }
               catch(Exception e)
               {
                   throw e;
               }
           }
           public int Deletar()
           {
               try
               {
                   D_AudioVisual DAudioVisual = new D_AudioVisual();
                   return DAudioVisual.Delete(_IAudioVisual);
               }
               catch(Exception e)
               {
                   throw e;
               }
           }
           public ArrayList Selecionar()
           {
               try
               {
                   D_AudioVisual DAudioVisual = new D_AudioVisual();
                   return DAudioVisual.Select(_IAudioVisual);
               }
               catch(Exception e)
               {
                   throw e;
               }
           }

           #endregion
       }
}

